//
//  NSArray+log.m
//  plist文件解析
//
//  Created by songhuipan on 16/3/20.
//  Copyright © 2016年 songhuipan. All rights reserved.
//

#import "NSArray+log.h"

@implementation NSArray (log)
- (NSString*)descriptionWithLocale:(id)locale {
    
    NSMutableString *string = @"".mutableCopy;
    
    [string appendString:@"(\n"];
    
    [self enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        
        [string appendFormat:@"\t%@\n",obj];
    }];
    
    [string appendString:@")\n"];
    
    
    return string;
    
}
@end

@implementation NSDictionary (log)


- (NSString*)descriptionWithLocale:(id)locale {
    
    NSMutableString *string = @"".mutableCopy;
    
    [string appendString:@"{\n"];
    
    [self enumerateKeysAndObjectsUsingBlock:^(id  _Nonnull key, id  _Nonnull obj, BOOL * _Nonnull stop) {
        
        [string appendFormat:@"\t%@:%@\n",key,obj];
    }];
    
    [string appendString:@"}\n"];
    
    return string;
}


@end
